populate Asset Source
Deprecated
Will be removed in a future version. Use Engine.asset.addLocalSourceFromJSON(contentUri) instead.
Replace with
asset.addLocalSourceFromJSON(jsonUri)Content copied to clipboard
Creates and adds a new local asset source with id. A describing content json file is fetched from jsonUri and containing assets are added to the local asset source. Note: Check "https://cdn.img.ly/packages/imgly/cesdk-android/1.81.0/assets/ly.img.sticker/content.json" for the structure of the json file.
Parameters
id
the asset source id that should be added via AssetApi.addLocalSource.
json Uri
the uri of the json to fetch.
replace Base Uri
an optional uri which will replace {{baseURL}} in the json file.